package game
{
	import flash.display.Sprite;
	
	import game.commands.app.StartupCommand;
	import game.define.NotificationNames;
	
	import org.puremvc.as3.patterns.facade.Facade;
	
	public class AppFacade extends Facade
	{
		public function AppFacade()
		{
			super();
		}
		
		public static function getInstance():AppFacade
		{
			if ( instance == null ) instance = new AppFacade();
			return instance as AppFacade;
		}
		
		override protected function initializeController():void
		{
			super.initializeController();
			registerCommand(NotificationNames.APP_STARTUP, StartupCommand);
		}
		
		public function startup():void
		{
			sendNotification(NotificationNames.APP_STARTUP);
		}
	}
}